package com.gameapplet.stage.service.Impl;

import com.gameapplet.stage.dao.IStageDao;
import com.gameapplet.stage.model.Stage;
import com.gameapplet.stage.service.IStageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("stageService")
public class StageServiceImpl implements IStageService {
    @Resource
    IStageDao stageDao;

    public String selectStageidByStagenum(String stagenum) {
        return stageDao.selectStageidByStagenum(stagenum);
    }
    public List selectQuestionid(){
        return stageDao.selectQuestionid();
    }

    @Override
    public void insertStage(Stage stage) {
        stageDao.insertStage(stage);
    }
    public void updateByStageid(Stage stage){
        stageDao.updateByStageid(stage);
    }
}
